<!--
 * @Author: Leng
 * @Date: 2021-03-24 11:18:50
 * @Description: 倒计时
 * @FilePath: \vue-leng-demo\src\components\train\countdown.vue
-->

<template>
  <countdown :modelValue="countdownValue" :contentFn="updateCountdownText"></countdown>
</template>

<!-- <script>
export default {
name: 'countdownName'
}
</script> -->

<script setup lang="ts">
import { ref } from 'vue'
import { countdown } from 'vue-leng'
const countdownValue = ref(25 * 60 * 1000)
const updateCountdownText = time => `请在<em style="color: #F4856F;">${time.m}分${time.s}秒</em>内完成支付，超时订单自动取消`
</script>